﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class VerificationCode : Message
    {
        public static int TYPE = 7;
        public static int ID = 146;

        private string phoneNum;
        private string authCode;//验证码
        public static VerificationCode Create(string p,string code) {
            VerificationCode vc = new VerificationCode();
            vc.phoneNum = p;
            vc.authCode = code;
            return vc;
        }
        public void decode(core.io.Input _in)
        {

        }
        public void encode(Output _out)
        {
            _out.writeString(phoneNum);
            _out.writeString(authCode);
        }
        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "authCode" + authCode ;
        }
    }
}
